package com.itheima.service;

import com.itheima.dao.impl.OrderImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class OrderCon {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("spring-day01/src/main/resources/appliction-staticfactor.xml");
        OrderImpl orderService = (OrderImpl) context.getBean("orderService");
        orderService.orderFiAnd();
    }
}
